package com.tianhui.consignortwofei.mvp.model.enty.bankCard;

import android.os.Parcel;
import android.os.Parcelable;

import com.tianhui.consignortwofei.mvp.model.enty.authLicense.BaseAuthInfo;


/**
 * @author fgs
 * @date 2020/4/14
 * @description
 **/
public class BankCardInfo extends BaseAuthInfo implements Parcelable {
    public String bankaddress;
    public String bankcardno;
    public String bankname;
    public String cardusername;
    public String id;

    public String driverid;
    public String idcard;
    //类型  个人/企业
    public String issuingtype;


    public String createBy;
    public String createTime;
    public String invoicetitle;
    public String invoicetype;
    public String isdefault;
    public String linetel;
    public String modifyBy;
    public String modifyTime;
    public String registeredaddress;
    public String roleid;
    public String state;
    public String taxregisterno;

    public boolean isShowOrHide;

    public String accountType;
    public String bankCardNo;
    public String bankCertName;
    public String bankStatus;
    public String branchCity;
    public String branchName;
    public String branchProvince;
    public String cardHolderAddress;
    public String certNo;
    public String certType;
    public String contactLine;
    public String logonId;
    public String settlementAccountType;


    public static final Creator<BankCardInfo> CREATOR = new Creator<BankCardInfo>() {
        @Override
        public BankCardInfo createFromParcel(Parcel in) {

            BankCardInfo info = new BankCardInfo();

            info.bankaddress = in.readString();
            info.bankcardno = in.readString();
            info.bankname = in.readString();
            info.cardusername = in.readString();
            info.id = in.readString();
            info.driverid = in.readString();
            info.idcard = in.readString();
            info.issuingtype = in.readString();
            return info;
        }

        @Override
        public BankCardInfo[] newArray(int size) {
            return new BankCardInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(bankaddress);
        dest.writeString(bankcardno);
        dest.writeString(bankname);
        dest.writeString(cardusername);
        dest.writeString(id);
        dest.writeString(driverid);
        dest.writeString(idcard);
        dest.writeString(issuingtype);
    }


}
